<?php
 $v = ['郭浩佳'=>1,'佳哥'=>2,'浩总'=>3,'郭董'=>4];
 foreach($v as $key=>$value){
     echo "<br>$key=>$value";
 }
echo "<hr>";
 $arr = [1,34,67,25,10];
 $max = $arr[0];
 $max_key = 0;
 foreach($arr as $key=>$value){
    if($max < $value){
        $max = $value;
        $max_key = $key;
    }
 }
 echo "最大值为$max,对应下标为$max_key";
?>